<?php 
class Application_Form_Decorator_View_Element_Label extends Zend_Form_Decorator_Abstract
{
	public function render($content)
	{
	    // get element
	    $elm = $this->getElement();

	    if (
	    	($elm instanceof Application_Form_Element_Label)
			
	    ) {
		    $valueDisplay = $elm->getUnfilteredValue();
	    } else {
		    $valueDisplay = $elm->getValue();
	    }
	    
	    $description = $elm->getDescription();
	    if (strlen($description) > 0) {
	    	$description = sprintf('<p class="description">%s</p>', $description);	
	    }

	    return sprintf('<dd class="label">%s%s</dd>', $valueDisplay, $description);
    }
}